{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}
<div class="panel panel-default">
  <div class="panel-heading">General</div>
  <div class="panel-body">
    <div class="form-group">
      <label for="inputEmail" class="control-label col-xs-2">Host<span class="requiredField">&nbsp;*</span></label>
      <div class="col-xs-7">
        {{input type="text" class="form-control" name="host" value=actionModel.host placeholder="localhost"}}
        {{field-error model=this field='actionModel.host' showErrorMessage=showErrorMessage}}
      </div>
    </div>
    <div class="form-group">
      <label for="inputEmail" class="control-label col-xs-2">Command<span class="requiredField">&nbsp;*</span></label>
      <div class="col-xs-7">
        {{input type="text" class="form-control" name="command" value=actionModel.command placeholder="command"}}
        {{field-error model=this field='actionModel.command' showErrorMessage=showErrorMessage}}
      </div>
    </div>

    <div class="form-group">
      <label class="control-label col-xs-2 visibility-hidden">Args</label>
      <div class="col-xs-2">
        <input type="radio" name="args" checked={{if (eq useArg false) 'checked'}}  {{action "argTypeChanged" false on="change"}}> Args
      </div>
      <div class="col-xs-2">
        <input type="radio" name="arg" checked={{if (eq useArg true) 'checked'}}  {{action "argTypeChanged" true on="change"}}> Arg
      </div>
    </div>
    <div id="arg-option">
      {{#arg-config args=actionModel.arg register="register" title="Arg"}}{{/arg-config}}
    </div>
    <div id="args-option">
      {{#arg-config args=actionModel.args register="register" title="Args"}}{{/arg-config}}
    </div>
    <div class="form-group">
      <label class="control-label col-xs-2">Capture output</label>
      <div class="col-xs-8">
        <div class="checkbox">
          <label title="capture output of the action">{{input type="checkbox" name="capture-output" checked=actionModel.captureOutput}}</label>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="panel panel-default">
  <div class="panel-heading">Transition</div>
  <div class="panel-body handlerPanel">
    {{#transition-config transition=transition killNodes=killNodes currentNode=currentNode register="register"}}{{/transition-config}}
  </div>
</div>
{{#action-credential-config credentials=credentials actionCredentials=actionModel.credentials}}{{/action-credential-config}}
{{#sla-info slaInfo=actionModel.slaInfo register="register" slaEnabled=actionModel.slaEnabled register="register"}}{{/sla-info}}
